import request from '@/utils/request'

// 查询员工工资列表
export function listMoney(query) {
  return request({
    url: '/oa/money/list',
    method: 'get',
    params: query
  })
}

// 查询员工工资详细
export function getMoney(employeeId) {
  return request({
    url: '/oa/money/' + employeeId,
    method: 'get'
  })
}

// 新增员工工资
export function addMoney(data) {
  return request({
    url: '/oa/money',
    method: 'post',
    data: data
  })
}

// 修改员工工资
export function updateMoney(data) {
  return request({
    url: '/oa/money',
    method: 'put',
    data: data
  })
}

// 删除员工工资
export function delMoney(employeeId) {
  return request({
    url: '/oa/money/' + employeeId,
    method: 'delete'
  })
}
